home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / FlyThrough 1.1.2 / src / Source / QD3D General Tools / CBoxMaker.h < prev    next >
Encoding:
Text File  |  1997-03-12  |  509 b   |  27 lines  |  [TEXT/CWIE]

  1. //
  2. //    CBoxMaker.h
  3. //
  4. //    class CBoxMaker
  5. //        Constructs a single box and assigns colors to each face.
  6. //        Note: The face attributes are members and will be released
  7. //        in the destructor.
  8. //
  9. //    by James Jennings
  10. //    November 23, 1995
  11. //
  12.  
  13. #pragma once
  14.  
  15. #include "CObjectMaker.h"
  16.  
  17. class CBoxMaker : public CObjectMaker<TQ3GeometryObject> {
  18. public:
  19.     CBoxMaker( float inSize = 1.0 );
  20.     ~CBoxMaker();
  21.      virtual    void    Make();
  22. private:
  23.     enum { numFaces = 6 };
  24.     TQ3AttributeSet     mFaces[numFaces];
  25.     TQ3BoxData            mData;
  26. };
  27.